/**
 * 将复杂对象的构建与它的表示分离，使得同样的构建过程可以创建不同的表示
 */
public class Main {
    public static void main(String[] args) {
        MachineBuilder builder = new MachineBuilder();
        Machine machine = builder.name("Redmi Book 14").width(15).weight(1).height(1).powder(1).cpu("Intel 5-10").build();
        System.out.println(machine);
        Machine otherMachine = builder.name("other").build();
        System.out.println(otherMachine);
    }
}